package com.ruoyi.wxhouse.controller;


import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.house.domain.YjzHouse;
import com.ruoyi.wxhouse.domain.WxHouse;
import com.ruoyi.wxhouse.service.WxHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;

import java.util.List;
import com.ruoyi.wxhouse.service.WxHouseService;
@RestController
@RequestMapping("/wx/house")
public class WxHouseController extends BaseController {

    @Autowired
    private WxHouseService wxHouseService;

    /**
     * 查询房源列表
     */
    @GetMapping("/list")
    public TableDataInfo getHouse(YjzHouse yjzhouse) {
        startPage();
        List<WxHouse> list = wxHouseService.selectWxHouseList(yjzhouse);
        return getDataTable(list);
    }
}
